package com.letfox.ad.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.ADPlanDao;
import com.letfox.ad.model.ADPlan;
import com.letfox.ad.service.ADPlanService;

@Service
public class ADPlanServiceImpl implements ADPlanService {
	
	@Autowired
	private ADPlanDao adPlanDao;

	@Override
	public int deleteByPrimaryKey(String adPlanId) {
		return adPlanDao.deleteByPrimaryKey(adPlanId);
	}

	@Override
	public int insert(ADPlan record) {
		return adPlanDao.insert(record);
	}

	@Override
	public ADPlan selectByPrimaryKey(String adPlanId) {
		return adPlanDao.selectByPrimaryKey(adPlanId);
	}

	@Override
	public int updateByPrimaryKey(ADPlan record) {
		return adPlanDao.updateByPrimaryKey(record);
	}

	@Override
	public List<ADPlan> selectUserAD(String accountId,String del) {
		return adPlanDao.selectUserAD(accountId,del);
	}

	@Override
	public ADPlan selectADInterType(String materId) {
		return adPlanDao.selectADInterType(materId);
	}

}
